# Maintainer: schuay <jakob.gruber@gmail.com>
# Contributor: Gabriel B. Casella <gbc921@gmail.com>
# Contributor: josephgbr <rafael.f.f1@gmail.com>

pkgname=pdfgrep
pkgver=2.1.2
pkgrel=2
pkgdesc="A tool to search text in PDF files"
arch=('loong64' 'x86_64')
url="http://pdfgrep.sourceforge.net/"
license=('GPL')
depends=('poppler')
source=(https://pdfgrep.org/download/${pkgname}-${pkgver}.tar.gz)

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

check() {
  cd "$srcdir/$pkgname-$pkgver"
  make -k check
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
}

md5sums=('d66b1da66f427f68fa3b99d077806583')
